package com.example.demo.pojo;

public class ResultLog extends Result {
    private String token;//返回数据

    //    查询 成功响应
    public static ResultLog success(String token){
        return new ResultLog(200,"登录成功",token);
    }
    public ResultLog() {
    }

    public ResultLog(Integer code, String msg, String token) {
        this.code = code;
        this.msg = msg;
        this.token = token;
    }

    /**
     * 获取
     * @return code
     */
    public Integer getCode() {
        return code;
    }

    /**
     * 设置
     * @param code
     */
    public void setCode(Integer code) {
        this.code = code;
    }

    /**
     * 获取
     * @return msg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * 设置
     * @param msg
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 获取
     * @return token
     */
    public String getToken() {
        return token;
    }

    /**
     * 设置
     * @param token
     */
    public void setToken(String token) {
        this.token = token;
    }

    public String toString() {
        return "ResultLog{code = " + code + ", msg = " + msg + ", token = " + token + "}";
    }
}
